< previous page page_52 next page >

Page 52
To build a list of normal and abnormal scenarios to illustrate in your sequence diagrams, you need to interview domain experts and end users. Assuming this has been done, let's list the current scenarios (see Table 2.2).
TABLE 2.2. A LIST OF USE CASES AND THEIR RESPECTIVE SCENARIOS.
Use CaseScenario
Open an AccountThe customer is a new customer with no previous accounts and has the minimum required balance.
The customer has an existing account that is active.
The customer has an existing account that is inactive.
The customer is new but doesn't have the minimum required balance.
The customer is a new customer with no previous accounts but wants to deposit more than $10,000 in cash.
Close an AccountAn active account exists, and the customer is authorized to close it.
The account being closed is inactive.
The customer isn't authorized to close the account.
The customer is authorized to close the account, but the account is deficient, or the customer owes money to the bank.
Deposit New FundsAn active account exists, and the customer is authorized to deposit money in it.
The customer isn't authorized to deposit money in the account.
The amount being deposited exceeds $10,000 in cash.
Withdraw FundsAn active account exists, and the customer is authorized to withdraw money from it.
The customer isn't authorized to withdraw money from the account.
The teller tries to withdraw, at the customer's request, more money than is available.

For simplicity's sake, you'll concentrate on the first sequence diagram for the Open an Account use case. Assume that you had a use case meeting with the users and domain experts, who then elaborated on the steps involved.
The First Sequence Diagram
As noted in Table 2.2, the first scenario is the normal path that reads The customer is a new customer with no previous accounts and has the minimum required balance. Before diagramming this scenario, you should elaborate on the steps involved. A good format

 
< previous page page_52 next page >

If you like this book, buy it!